<div class="preheader">
  <div class="padding" >
  
  {%if id %}
  <a href="/article/{{id}}/eng"><img src="/images/uk.jpg" height="12" border="0">English</img></a>
  <a href="/article/{{id}}"><img src="/images/fru.gif" height="12" border="0">Русский</img></a>
  {% else %}
  <a href="/{{ page }}/eng"><img src="/images/uk.jpg" height="12" border="0">English</img></a>
  <a href="/{{ page }}/rus"><img src="/images/fru.gif" height="12" border="0">Русский</img></a>
  {% endif%}
  
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  {% if user %}
	{{username}}
  {% endif %} 
	</div>   
 </div>
  
  <div class="header" style="cursor: pointer;">
  <div style="float:left; padding:5px 5px 5px 70px;">
  	<img src="/images/foobnix.png" border="0" onclick="location.href='/'" />
  </div>
  
  
    	{% ifequal lang "eng" %}
	<div class="title" onclick="location.href='/news/eng'" >{{title.eng}}</div>
	<div class="slogan" onclick="location.href='/news/eng'">{{slogan.eng}}</div>
	{% else %}
	<div class="title" onclick="location.href='/news/rus'">{{title.rus}}</div>
	<div class="slogan" onclick="location.href='/news/rus'">{{slogan.rus}}</div>
	{% endifequal %}
	
<div style="float:right;padding-right:72px;">	
	<form action="http://www.google.ru/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-8347903083053959:43i2dlp6cu4" />
    <input type="hidden" name="ie" value="utf-8" />
    <input type="text" name="q" size="32" />
    {% ifequal lang "eng" %}
    <input type="submit" name="sa" value="{{search.eng}}" />
    {% else %}	
	<input type="submit" name="sa" value="{{search.rus}}" />
	{% endifequal %}
    
  </div>
</form>
<script type="text/javascript" src="http://www.google.ru/cse/brand?form=cse-search-box&amp;lang=ru"></script>
	
</div>
	
  </div>
  <div style="clear:both;">
  </div>	
  <div id="nav">
    <ul>
    {% for key in menu %}
    	{% ifequal lang "eng" %}
			<li {% ifequal key.id article.category %}id="current"{% endifequal %}><a href="/{{ key.id }}/{{lang}}">{{key.eng}}</a></li>
		{% else %}
			<li {% ifequal key.id article.category %}id="current"{% endifequal %}><a href="/{{ key.id }}">{{key.rus}}</a></li>
		{% endifequal %}    	
	{% endfor %}

    </ul>
    
   </div>
   
    
   
   
  